import api from '../utils/api';

export async function create(param) {
    return api.post('/transfer/create',{
        data: JSON.stringify(param),
    });
}

export async function remove(param) {
    return api.post('/transfer/remove',{
        data: JSON.stringify(param),
    });
}

export async function edit(param) {
    return api.post('/transfer/edit',{
        data: JSON.stringify(param),
    });
}

export async function doTransfer(param) {
    return api.post('/transfer/doTransfer',{
        data: JSON.stringify(param),
    });
}

export async function queryTransferList(param) {
    return api.post('/transfer/queryTransferList',{
        data: JSON.stringify(param),
    });
}


export async function queryTransferDetailList(param) {
    return api.post('/transfer/queryTransferDetailList',{
        data: JSON.stringify(param),
    });
}

export async function qryAssetById(param) {
    return api.post('/asset/qryAssetById', {
      data: JSON.stringify(param),
    });
  }

  export async function qryById(param) {
    return api.post('/transfer/qryById', {
      data: JSON.stringify(param),
    });
  }

  export async function qryDetailById(param) {
    return api.post('/transfer/queryDetailById', {
      data: JSON.stringify(param),
    });
  }


export async function querAssetListByParam(param) {
    return api.post('/transfer/querAssetListByParam', {
      data: JSON.stringify(param),
    });
  }